<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RulePolicy extends Model
{
    //
    protected $table = 'rule_policy';
    protected $guarded = [];


    /**
     * 航班
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function rule_policy_flight(){

        return $this->hasMany(RulePolicyFlight::class,'policy_id','id');
    }
}
